function showResults(id)
{
   var resultsDiv = document.getElementById(id + "-results");
   var showLink = document.getElementById(id + "-showLink");
   var hideLink = document.getElementById(id + "-hideLink");
   
   if (resultsDiv)
   {
      resultsDiv.style.display = "block";
   }
   if (showLink)
   {
      showLink.style.display = "none";
   }
   if (hideLink)
   {
      hideLink.style.display = "inline";
   }
}

function hideResults(id)
{
   var resultsDiv = document.getElementById(id + "-results");
   var showLink = document.getElementById(id + "-showLink");
   var hideLink = document.getElementById(id + "-hideLink");
   
   if (resultsDiv)
   {
      resultsDiv.style.display = "none";
   }
   if (showLink)
   {
      showLink.style.display = "inline";
   }
   if (hideLink)
   {
      hideLink.style.display = "none";
   }
}